package com.luohh.treeroom.entity;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 罗辉煌
 * @since 2020-02-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ProductCategory implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value="id", type= IdType.AUTO)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private  Integer id;

    /**
     * 类目名字
     */
    private String categoryName;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 分类子ID，对应父的id
     */
    private Integer pid;

    /**
     * 分类的封面
     */
    private String cover;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

    private  Integer isValid;
}
